import request from '@/utils/request'
import type { PageParam, ResponseData } from '../commonType'

enum API {
  getConsultInfo_URL = '/statistics/getConsultInfo', // 咨询信息统计
  getMaintainInfo_URL = '/statistics/getMaintainInfo', // 维修保养信息统计
  getSaleInfo_URL = '/statistics/getSaleInfo', // 销售信息统计
}

export function getConsultInfo(data) {
  return request.get<any, ResponseData>(API.getConsultInfo_URL, { params: data })
}

export function getMaintainInfo(data) {
  return request.get<any, ResponseData>(API.getConsultInfo_URL, { params: data })
}

export function getSaleInfo(data) {
  return request.get<any, ResponseData>(API.getConsultInfo_URL, { params: data })
}
